package com.sfac.modules.test.service;

import com.github.pagehelper.PageInfo;
import com.sfac.modules.common.vo.Result;
import com.sfac.modules.common.vo.Search;
import com.sfac.modules.test.pojo.City;

import java.util.List;

public interface CityService {


    Result<City> insertCity(City city);

    Result<City> updateCity(City city);

    Result<City> deleteCity(int cityId);

    Result<City> selectCity(int cityId);

    Result<City> selectAllCitys();

    Result<City> getCityName(String cityName,String localCityName);

    List<City> getCityByCountryName(String countryId);

    PageInfo<City> getCitiesBySearch(Search search);
}
